#include "stdafx.h"
#include "wf_selectbase.h"



WF_SelectBase::WF_SelectBase(const char* name,
        PF_Container& container,
        PF_GraphicView& graphicView)
        :PF_ActionInterface(name,
                    container, graphicView) {}



/**
 * Default behaviour of this method is triggering the predecesing
 * action and finishing this one when the enter key is pressed.
 */
void WF_SelectBase::keyReleaseEvent(PF_KeyEvent* e) {
    if (e->key()==Qt::Key_Return && predecessor!=NULL) {
        finish();
    }
}



void WF_SelectBase::updateMouseCursor() {
    graphicView->setMouseCursor(LX_Define::SelectCursor);
}


// EOF
